﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Basic"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	xmlns:EIA_SLClient_Utility_Converters="clr-namespace:EIA.SLClient.Utility.Converters;assembly=EIA.SLClient.Utility"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Basic.ProjectInfoView"
	d:DesignWidth="1524" d:DesignHeight="360">
	<UserControl.Resources>
		<local:ProjectInfoViewModel x:Key="ProjectInfoViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ProjectInfoViewModelDataSource}}">
		<i:Interaction.Triggers>
			<i:EventTrigger>
				<ei:CallMethodAction TargetObject="{Binding Mode=OneWay}" MethodName="OnLoad"/>
			</i:EventTrigger>
		</i:Interaction.Triggers>
		<Grid Margin="0" HorizontalAlignment="Center">
			<Grid.ColumnDefinitions>
				<ColumnDefinition />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition/>
				<RowDefinition Height="70"/>
			</Grid.RowDefinitions>
			<ScrollViewer Margin="0,16" VerticalScrollBarVisibility="Auto" BorderThickness="0" Padding="0">
				<local:ProjectInfoControl HorizontalAlignment="Center" Width="720" ProjectBasic="{Binding Model}" IsEditing="{Binding IsEditing}" Margin="0"/>
			</ScrollViewer>
			<Grid Grid.Row="1" Width="720" HorizontalAlignment="Center">
				<Button Content="取消" BorderThickness="0" Padding="0" Style="{StaticResource bs_clear}" Command="{Binding CancelCommand}" Margin="0,16,8,0" FontSize="14.667" HorizontalAlignment="Right" Width="120" Foreground="#FF4C4C4C" VerticalAlignment="Top" Height="30" Visibility="{Binding IsEditing, Converter={StaticResource Bool2VisibilityConverter}, Mode=OneWay}" IsEnabled="{Binding IsEditing, Mode=OneWay}" >
					<Button.Background>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn1-1.png"/>
					</Button.Background>
					<i:Interaction.Behaviors>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn1-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn1-1.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn1-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn1-1.png" Opacity="0.4"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
					</i:Interaction.Behaviors>
				</Button>
				<Button Content="保存" BorderThickness="0" Padding="0" Style="{StaticResource bs_clear}" Command="{Binding SaveCommand}" Margin="0,16,144,0" FontSize="14.667" HorizontalAlignment="Right" Width="120" Foreground="White" VerticalAlignment="Top" Height="30" Visibility="{Binding IsEditing, Converter={StaticResource Bool2VisibilityConverter}, Mode=OneWay}" IsEnabled="{Binding IsEditing, Mode=OneWay}">
					<Button.Background>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png"/>
					</Button.Background>
					<i:Interaction.Behaviors>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png" Opacity="0.4"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
					</i:Interaction.Behaviors>
				</Button>
				<Button Content="编辑" BorderThickness="0" Padding="0" Style="{StaticResource bs_clear}" Command="{Binding EditCommand}" Margin="0,16,8,0" FontSize="14.667" HorizontalAlignment="Right" Width="120" Foreground="White" VerticalAlignment="Top" Height="30" Visibility="{Binding IsEditing, ConverterParameter=f, Converter={StaticResource Bool2VisibilityConverter}, Mode=OneWay}" IsEnabled="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}, Mode=OneWay}">
					<Button.Background>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png"/>
					</Button.Background>
					<i:Interaction.Behaviors>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-2.png"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/btn2-1.png" Opacity="0.4"/>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
					</i:Interaction.Behaviors>
				</Button>
				<Path Data="M715,4 L-0.011188724,4" Height="1" Margin="0" Stretch="Fill" Stroke="#FFE1E1E1" UseLayoutRounding="False" VerticalAlignment="Top"/>
			</Grid>
		</Grid>
	</Grid>
</UserControl>
